//
//  CRInputEmoticonButton.h
//  TestPrj
//
//  Created by 朱铅峰 on 2020/8/4.
//  Copyright © 2020 Xing. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CRInputEmoticon;

@protocol CREmoticonButtonTouchDelegate <NSObject>

- (void)selectedEmoticon:(CRInputEmoticon*)emoticon catalogID:(NSString*)catalogID;

@end

@interface CRInputEmoticonButton : UIButton

@property (nonatomic, strong) CRInputEmoticon *emoticonData;

@property (nonatomic, copy)   NSString         *catalogID;

@property (nonatomic, weak)   id<CREmoticonButtonTouchDelegate> delegate;

+ (CRInputEmoticonButton*)iconButtonWithData:(CRInputEmoticon*)data catalogID:(NSString*)catalogID delegate:( id<CREmoticonButtonTouchDelegate>)delegate;

- (void)onIconSelected:(id)sender;

@end

